create array on basis of object's child